package com.gopay.common.cps.manager.gp.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.gopay.common.cps.dao.gp.CpsGpTrustRiskRelDAO;
import com.gopay.common.cps.manager.gp.CpsGpTrustRiskRelManager;
import com.gopay.common.domain.cps.gp.CpsGpTrustRiskRel;
/**
 * P2P平台托管与风险金关系
 * @CpsGpTrustRiskRelManagerImpl.java
 * @author lizheng
 * @2014-4-24 下午12:02:51  www.gopay.com.cn Inc.All rights reserved.
 */
@Service("cpsGpTrustRiskRelManager")
public class CpsGpTrustRiskRelManagerImpl  implements CpsGpTrustRiskRelManager{

    @Resource(name = "cpsGpTrustRiskRelDAO")
    private CpsGpTrustRiskRelDAO cpsGpTrustRiskRelDAO;
    
    @Override
    public CpsGpTrustRiskRel get(Serializable id) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<CpsGpTrustRiskRel> get(Map<Object, Object> paraMap) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<CpsGpTrustRiskRel> getAll() {
        // TODO Auto-generated method stub
        return null;
    }
    
    @Override
    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = { Exception.class })
    public void saveRel(CpsGpTrustRiskRel rel) {
        cpsGpTrustRiskRelDAO.save(rel);
    }
    
    @Override
    public CpsGpTrustRiskRel getByCustIdAndTrustAcct(String custId, String trustAcct) {
        return cpsGpTrustRiskRelDAO.getByCustIdAndTrustAcct(custId, trustAcct);
    }

}
